home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 009a / tde221.zip / TDE.DOC < prev    next >
Text File  |  1993-04-01  |  62KB  |  1,391 lines

  1.  
  2.                      TDE, the Thomson-Davis Editor
  3.                              Version 2.21
  4.                              April 1, 1993
  5.                               Frank Davis
  6.  
  7.  
  8. Description:
  9.  
  10.   TDE is a simple, public domain, multi-file/multi-window binary and text
  11.   file editor written for IBM PCs and close compatibles.  TDE is suitable
  12.   for editing batch files, binary files, text files, and various computer
  13.   language source code files.  The only limit on the number and size of
  14.   files that TDE can handle is the amount of conventional memory.
  15.   Likewise, the only limit on the number of windows is the amount of
  16.   conventional memory.  There is no preset maximum number of files or
  17.   windows that may be open at any one time.
  18.  
  19.  
  20. Introduction:
  21.  
  22.   I work with data files, computer source code, and various text files quite
  23.   a bit.  Most of the features in TDE are related, in some way, to handling
  24.   those types of files.  The various window and cursor commands in TDE are
  25.   really nice for comparing and editing source code or output files.  A
  26.   good collection of block commands is available for use on source code
  27.   and formatted data files.  For what little word processing I do, TDE has
  28.   a few simple commands for formatting text and paragraphs.  In short, TDE
  29.   contains most of the features that I use most of the time in an easy to
  30.   use, easy to remember, and easy to configure editor.  I hope you find
  31.   TDE as easy to use for most of your routine editing as me.
  32.  
  33.  
  34. Usage:
  35.  
  36.   At the command line type:
  37.  
  38.         tde [ [-f search_pattern] file name(s)]
  39.  
  40.         tde [ [-b] file name]
  41.  
  42.   For example:
  43.  
  44.         tde
  45.         tde foo.bar
  46.         tde c:\c70\TDE\main.c
  47.         tde *.c  \qc25\TDE\*.h
  48.         tde foo.bar  foobar  f*  foo.*  f??b??
  49.  
  50.       * * *  to search files for a pattern and load matches  * * *
  51.  
  52.         tde  -f  find_me_load_me  foo.*
  53.         tde  -f  find_me_load_me  foo.*  *.bar
  54.  
  55.       * * * to edit binary files * * *
  56.  
  57.         tde -b tde.exe
  58.         tde -b80 tde.exe
  59.  
  60.  
  61.   If you don't enter a file name at the command line, TDE will prompt you
  62.   for a file name.  If the file does not exist, TDE starts out with an
  63.   empty file with the file name you just entered.  Or, pressing <Enter>
  64.   twice will pop-up a directory list.
  65.  
  66.  
  67. What's new:
  68.  
  69.  
  70.                       New features in TDE 2.2 include:
  71.  
  72.         Dirty Line color        = Config file
  73.         NextDirtyLine           = @F5
  74.         PrevDirtyLine           = @F6
  75.         Right margin justify    = ^F7
  76.         Stable Quicksort        = replaced the old insertion sort
  77.         Customize overscan      = config utility
  78.         Put support for two-key combo's back in, e.g. ^KQ
  79.         Edit text and binary files
  80.         + Source code may now be compiled w/ MSC 7.0, QuickC 2.51, and BC 3.1
  81.         + Make file supports MSC 7.0, QuickC 2.5, and BC 3.1
  82.         + autoload <LF>, <CRLF>, and some BIN (binary) files
  83.         + added signatures to structures changed by the config utility
  84.         + assertions in source code to find my many design flaws,
  85.             programming mistakes, and logic errors
  86.  
  87.  
  88.   In this version, the big text buffer was replaced by a double linked
  89.   list.  In general, many functions are faster.  However, this version
  90.   will not handle files quite as large as previous versions.  On the
  91.   other hand, this version will edit binary files.  I think just about
  92.   any ASCII or Extended ASCII character may be edited in any file.  Also
  93.   notice in the file header that the offset is displayed for files
  94.   opened in binary mode.
  95.  
  96.   When I added support for binary files, I wanted the ability to edit
  97.   some of the files produced by our lab equipment.  The data collectors
  98.   dump data in a fixed record size.  The record size varies among the
  99.   machines, so TDE needs to handle various fixed record formats.  The
  100.   default record length for binary files is 64.  The default record
  101.   size may be overridden on the command line with the /b switch.  Just
  102.   add the size of the desired fixed length record to the /b, e.g.
  103.  
  104.                            tde -b128 nmr.dat
  105.                            tde -b80  hplc.dat
  106.                            tde -b54  rs232.dat
  107.  
  108.   Now, whenever a line is changed, the line changes color.  The dirty
  109.   line color can be set in the config utility.  Incidentally, the dirty
  110.   line color can be set to the same color as regular text, which effectively
  111.   turns off this feature.  After using this feature for a while, I really
  112.   needed another function to move the cursor to dirty lines.  During the
  113.   day, I get interrupted quite a bit and forget what I just changed.  The
  114.   NextDirtyLine and PrevDirtyLine functions are really useful for finding
  115.   the changes I made.  Other times, I forget what I just did.  Often, I
  116.   forget what I just did five minutes ago.  I vaguely remember changing
  117.   something, but I can't remember what or where.  The NextDirtyLine and
  118.   PrevDirtyLine functions come in handy for those with bad memories, like
  119.   me.
  120.  
  121.   A minor feature was added to the word processing functions:  right margin
  122.   justification.  The SetRightMargin function asks whether or not to
  123.   justify the right margin.  In the ruler, a '<' indicates the right margin
  124.   is jagged and a '├' indicates the right margin is smooth.
  125.  
  126.   The simple insertion sort was replaced by the much faster Quicksort.  The
  127.   SortBoxBlock function works the same -- just faster.  Computer science
  128.   types seem to have a fixation on sorting and searching.
  129.  
  130.   In the DTE 5.1 editor, Doug supported the WordStar/Turbo X command
  131.   convention.  TDE now supports two-key commands in a generic way.  The first
  132.   key must be a recognized function key and the second key can be anything,
  133.   even a repeat of the first key.  The one restriction with two-key commands
  134.   is that macros cannot be assigned to two-key combo's.
  135.  
  136.   Now that I own both Microsoft C 7.0 and Borland C 3.1, the source was
  137.   changed so both compilers can compile TDE.
  138.  
  139.  
  140.                      New features in TDE 2.1 include:
  141.  
  142.         SetLtabs                = ^Tab
  143.         SetPtabs                = ^Tab, prompts for both Ltabs and Ptabs
  144.         BlockCompressTabs       = #@C
  145.         BlockIndentTabs         = #@I
  146.         ToggleTabInflate        = #@T
  147.         DefineDiff              = #F7
  148.         RepeatDiff              = F7
  149.         -f pattern files        = command line option to define S&S
  150.         DefineSearchAndSeize    = #F12
  151.         RepeatSearchAndSeize    = F12
  152.         SwapBlock               = #@S
  153.         Sort sequence           = Config file
  154.  
  155.  
  156.                              Renamed functions:
  157.  
  158.         ReplaceString           == ReplaceForward || ReplaceBackward
  159.         PanUp                   == FixedScrollUP
  160.         PanDown                 == FixedScrollDn
  161.         PanLeft                 == ScrollLeft
  162.         PanRight                == ScrollRight
  163.  
  164.  
  165.  
  166.   At work, we may have several versions of one program.  For me, I find it
  167.   hard to remember which changes were made to which source files.  There
  168.   are several diff utilities that can point out differences, but I
  169.   probably need the edit those differences anyway.  The diff options I
  170.   find most useful are: setting the diff start, ignore leading space,
  171.   ignore all space, ignore blank lines, and ignore end of line.  The new
  172.   diff function in TDE prompts for the windows and the starting diff
  173.   options.  Once the diff is defined, press the RepeatDiff key at any time
  174.   to find the next diff.  With cursor sync turned on, it's easy to move
  175.   the cursors to begin the next diff.  Any two visible windows may be
  176.   diffed.  You may even diff windows in the same file, which is really
  177.   nice for comparing similar functions, data, or text in separate areas of
  178.   a file.
  179.  
  180.   Sort sequences were added for non-English languages: English, Esperanto,
  181.   Finnish, French, German, and Swedish.  You may customize the sort
  182.   sequence in tde.cfg.  This function is based on a program by Pierre
  183.   Jelenc, pcj1@columbia.edu.  Pierre's sort program will handle a much
  184.   wider range of alphabets and languages than TDE.
  185.  
  186.   The new SwapBlock function works only with BOX blocks.  Every once in a
  187.   while, I need to swap rows of numbers or areas of text.  The width of
  188.   the swap area assumed to be the width of the BOX.
  189.  
  190.  
  191.                    New features in TDE 2.0e include:
  192.  
  193.                       BlockRot13           = #@<
  194.                       BlockFixUUE          = #@>
  195.                       BlockEmailReply      = #@?
  196.  
  197.   ROT13 is an informal, voluntary standard used on the networks to send
  198.   text that some may consider inappropriate.  ROT13 is a convenient way
  199.   that allows one to choose whether or not to read the material.  To read
  200.   the material, one has to make a conscious and deliberate effort to
  201.   convert the text into a readable form.  ROT13 is also used to hide
  202.   answers to questions, puzzles, etc...  BlockRot13 alternately converts
  203.   ROT13 alpha characters into normal text and hides normal alpha
  204.   characters in ROT13.
  205.  
  206.   The most common default for sending large binary files across network
  207.   nodes and gateways uses UUencoding; however, some characters in the
  208.   UUencode set do not make the trip correctly.  On IBM mainframes, the
  209.   EBCDIC to ASCII translation don't do right.  Although I don't fully
  210.   understand why, but, three characters need to be fixed when receiving
  211.   text e-mail files, which include UUencoded files, from IBM mainframes.
  212.   BlockFixUUE will fix the three characters in a marked block.  The three
  213.   characters that need to be fixed in text (as opposed to binary) e-mail
  214.   files received from IBM mainframes are:
  215.  
  216.                   Hex               Decimal             ASCII
  217.  
  218.        1)     5d  ==>  7c         93  ==>  124        ]  ==>  |
  219.        2)     d5  ==>  5b        223  ==>   91        ╒  ==>  [
  220.        3)     e5  ==>  5d        229  ==>   93        σ  ==>  ]
  221.  
  222.  
  223.   When sending a reply to an e-mail, it is customary to prepend any lines
  224.   from the original e-mail with the ">" character.  BlockEmailReply
  225.   prepends "> " to the original line in an e-mail and prepends ">" to all
  226.   replies to replies in a LINE block.
  227.  
  228.  
  229.  
  230.                    New features in TDE 2.0 include :
  231.  
  232.          DateTimeStamp                           = ^2 or Control-@ sign
  233.          SortBoxBlock, ascending or descending   = @S
  234.          ToggleSmartTabs                         = @Tab
  235.          Dynamic left margin for writers         = @V
  236.          Pause, useful with macros               = ^P
  237.          Recursive macros
  238.          Support for Control-Break to stop recursive macros,
  239.               sorting, search/replacing, some block operations,
  240.               formatting text or paragraph, and printing.
  241.          Support for lines as long as 1040 characters.
  242.          Improved undo buffer management.  There is now room for
  243.               the last 10 by 1040  or  130 by 80 deleted lines.
  244.          Gathered all prompts into one header file to aid translation
  245.               of prompts and documentation into other languages.
  246.          Configuration file, option 6 in tdecfg.exe.
  247.  
  248.  
  249.   The date-time stamp was added to TDE because some users talk with field
  250.   units over the phone and the event needs to be date and time stamped.
  251.   Users may customize the date to local preferences, eg MM-DD-YY or
  252.   DD-MM-YY.  The time stamp may use either 12 hour or 24 hour form.
  253.  
  254.   Every once in a while, I need to sort data, names, etc..., in some of my
  255.   files.  The SortBoxBlock function was added to sort lines according to
  256.   the keys in a box block.  The keys may be sorted ascending or
  257.   descending, while the IGNORE/MATCH toggle determines whether case is
  258.   significant.  To sort multiple columns, start the sort with the least
  259.   significant key first.
  260.  
  261.   I also wrote a handler for the Control-Break interrupt, 0x1B.  On IBM
  262.   compatible PCs, the Control-Break key generates an interrupt via
  263.   hardware.  By writing a Control-Break interrupt handler, a user can
  264.   immediately gain control of a run-a-way recursive macro, printing job,
  265.   most box block operations, expanding tabs, trimming space from line
  266.   blocks, formatting a paragraph or text, search/replace, or a sort
  267.   operation.  Although one may trap Control-C, which is a software
  268.   generated interrupt, there is no telling when the operating system will
  269.   turn control over to a Control-C handler.  One may gain immediate
  270.   control with the Control-Break key, however.
  271.  
  272.   The undo-buffer space and management was greatly enhanced.  There is now
  273.   room for over 200 deleted lines in the buffer.  Users may now get back
  274.   entire functions that may have been deleted.
  275.  
  276.   All of the prompts in TDE were gathered into one header file to aid the
  277.   translation of documentation as well as the user prompts into other
  278.   languages.  Pierre Jelenc, pcj1@columbia.edu and a member of the Foreign
  279.   Language Education Forum (FLEFO) on CompuServe, has translated the
  280.   documentation and has created configuration files for several languages.
  281.   If you need a non-English version of TDE, contact Pierre to find out if
  282.   he has a version of TDE for you.
  283.  
  284.   A configuration file was added so that users may define all function
  285.   keys, modes, and colors from a configuration file.  Users may also
  286.   define macros in the configuration file.  Those who need to assign ASCII
  287.   and Extended ASCII character to unused function keys will find this
  288.   extremely useful.  Some alphabets need letters with all kinds of accent
  289.   marks.
  290.  
  291.  
  292.                    New features in TDE 1.5 include :
  293.  
  294.                     Ruler                     = @R
  295.                     Block trim trailing       = @T
  296.                     User defined macros:
  297.                        Record macro           = @F3
  298.                        Save macros to file    = #F1
  299.                        Load macros from file  = #F3
  300.                        Clear macro buffer     = ^ESC
  301.                     Critical error handler
  302.  
  303.   If by accident you forget to put a diskette in a floppy drive and try to
  304.   save a file or if you forget to turn on the printer before printing a
  305.   block or file, a critical error occurs.  That kind of error is the
  306.   infamous Abort, Retry, Ignore thing.  A routine was written to give some
  307.   information on the kind and the location of those errors when they
  308.   occur.  The TDE critical error handler gives you all kinds of info and
  309.   then prompts you for a response.  The timeout for critical errors varies
  310.   quite a bit.  Some timeouts may take a couple of minutes.
  311.  
  312.   When I "work" at the USDA, I often need to create or massage formatted
  313.   data files.  Also, a lot of engineers and scientists at the USDA program
  314.   in FORTRAN and the source code needs to be in a certain format.  When
  315.   working with those types of files, it is really useful to have a ruler
  316.   that explicitly shows which column the cursor is in.  The new ruler in
  317.   TDE shows margins, column numbers, and a column pointer.
  318.  
  319.  
  320.  
  321.                    New features in TDE 1.4 include :
  322.  
  323.               Split screen vertically            = F8
  324.               Number box block                   = Alt+N
  325.               Directory list                     = Alt+F1
  326.  
  327.   Also added in tdecfg was a choice of cursor styles and a switch for .bak
  328.   files.  Both of those options are in the mode section of tdecfg.
  329.  
  330.  
  331.  
  332.  
  333. Editor fields and information lines:
  334.  
  335.  
  336.                                Sample TDE screen
  337.  
  338.  
  339.          ┌─── File number - each window opened to same file has same number
  340.          │ ┌─── Window letter
  341.          │ │
  342.          │ │    ┌─── Dirty file indicator - asterisk
  343.          │ │    │ ┌─── File name
  344.          │ │    │ │                    ┌──── File attributes
  345.          │ │    │ │                    │    ┌──── Total number of lines in file
  346.          │ │    │ │                    │    │    ┌─── CR, CRLF, BIN mode
  347.          │ │    │ │                    │    │    │             ┌─── line:column
  348.                                                         
  349.       ┌──────────────────────────────────────────────────────────────┐
  350.       │    The first line on the screen contains file information    │
  351.       ├──────────────────────────────────────────────────────────────┤
  352.       │........1.....     Optional ruler line    ......7........8│
  353.       ├──────────────────────────────────────────────────────────────┤
  354.       │                                                              │
  355.       │                                                              │
  356.       │                          File area                           │
  357.       │                                                              │
  358.       │                                                              │
  359.       │                                                              │
  360.       ├──────────────────────────────────────────────────────────────┤
  361.       │                 Editor modes and information                 │
  362.       └──────────────────────────────────────────────────────────────┘
  363.                                                          Insert
  364.         │   │    │    │    │    │    │     │     │   │  │    │     └─ Overwrite
  365.         │   │    │    │    │    │    │     │     │   │  │    └───── ^Z at eof?
  366.         │   │    │    │    │    │    │     │     │   │  └───── trim trailing
  367.         │   │    │    │    │    │    │     │     │   │   space at eol, T = TRUE
  368.         │   │    │    │    │    │    │     │     │   │
  369.         │   │    │    │    │    │    │     │     │   └─── character under cursor
  370.         │   │    │    │    │    │    │     │     └───── CRLF or LF at eol?
  371.         │   │    │    │    │    │    │     └───── word wrap indicator
  372.         │   │    │    │    │    │    └───── Sync cursor in all windows?
  373.         │   │    │    │    │    └───── Ignore / Match search case?
  374.         │   │    │    │    └───── Indent mode?
  375.         │   │    │    └───── Tab modes = Smart/Fixed, In/Deflate, and ptabs
  376.         │   │    └───── Available memory for editing files
  377.         │   └───── Total number of windows, including hidden windows
  378.         └───── Total number of open files
  379.  
  380.  
  381.  
  382. Multiple keys:
  383.  
  384.   I use the following abbreviated key definitions throughout this file:
  385.  
  386.                 ^ = Control       # = Shift       @ = Alt
  387.  
  388.   For example, ^F5 means press and hold the Control key and then press F5
  389.   while holding down the Control key.
  390.  
  391.  
  392. Cursor movement:
  393.  
  394.                             101 Keyboard overview
  395.  
  396.             Cursor keys                               Keypad keys
  397.         ┌─────┬─────┬─────┐                ┌───────┬───────┬───────┬───────┐
  398.         │ Ins │Home │PgUp │                │NumLock│Grey / │Grey * │Grey - │
  399.         ├─────┼─────┼─────┤                ├───────┼───────┼───────┼───────┤
  400.         │ Del │ End │PgDn │                │ Home  │  Up   │ Pg Up │ Grey  │
  401.         └─────┴─────┴─────┘                ├───────┼───────┼───────┤   +   │
  402.                                            │ Left  │Center │ Right │       │
  403.               ┌─────┐                      ├───────┼───────┼───────┼───────┤
  404.               │ Up  │                      │  End  │ Down  │ Pg Dn │ Grey  │
  405.         ┌─────┼─────┼─────┐                ├───────┴───────┼───────┤       │
  406.         │Left │Down │Right│                │     Ins       │  Del  │ Enter │
  407.         └─────┴─────┴─────┘                └───────────────┴───────┴───────┘
  408.  
  409.                                                           
  410.     If you like using these grey                   With Num Lock off,
  411.      cursor keys, these function               you can probably guess most
  412.       assignments are for you.                of these function assignments.
  413.  
  414.           Grey cursor keys                            Keypad keys
  415.  
  416.  Up     - move cursor up                    Home   - toggle col 1 & beg of line
  417.  Down   - move cursor down                 ^Home   - first line in window
  418.  Left   - move cursor left                  Pg Up  - page up
  419.  Right  - move cursor right                ^Pg Up  - goto first page in file
  420. ^Up     - scroll cursor up                  Center - move to center of window
  421. ^Down   - scroll cursor down               ^Center - line to center of window
  422. ^Left   - cursor to previous word           End    - last character in line
  423. ^Right  - cursor to next word              ^End    - last line in window
  424. @Up     - pan up                            Pg Dn  - page down
  425. @Down   - pan down                         ^Pg Dn  - goto last page in file
  426. @Left   - pan left                          Ins    - toggle insert mode
  427. @Right  - pan right                         Del    - delete character
  428. @PgUp   - horizontal page left             ^Del    - stream delete character
  429. @PgDn   - horizontal page right             Grey - - scroll screen up
  430. ^#Left  - pan left                          Grey + - scroll screen down
  431. ^#Right - pan right                        ^Grey - - pan up
  432.                                            ^Grey + - pan down
  433.                                              Enter - Insert line and move down
  434.                                             #Enter - 1st char in next line
  435.                                             ^Enter - column 1 in next line
  436.  
  437.  
  438. Function Keys:
  439.  
  440.   I tried to use some logical order when I assigned functions to the
  441.   function keys.  I use a 101 keyboard most of the time, so it should be
  442.   easy to see the logical function grouping with it.  The function keys
  443.   on a 101 keyboard are placed along the top of the keyboard.  Functions
  444.   are arranged as follows:
  445.  
  446.  
  447.         Help    File              Find/Replace            Window
  448.               Functions              &  Diff             Commands
  449.          F1  F2  F3  F4          F5  F6  F7  F8          F9  F10  F11  F12
  450.  
  451.  
  452.    F1 = Instantaneous Help
  453.  
  454.   @F1 = Directory List
  455.         List the contents of a directory or matching files.  At the
  456.         prompt, press enter to list all files in the current directory or
  457.         enter any valid subdirectory name, file name, or wild card
  458.         characters.  You don't have to put a *.* at the end of a
  459.         subdirectory name; the directory list function adds those wild
  460.         card characters to subdirectory names as a default.  A '\' is
  461.         added to the end of subdirectory names in the file list.  To list
  462.         files in other directories, just move the cursor to the desired
  463.         subdirectory name and press enter.  When you see ..\ in the
  464.         directory list, the double periods represent the parent of the
  465.         current directory.  The .\ represents the current directory.  You
  466.         may move up and down the directory tree by selecting the parent or
  467.         childrens of the current directory.
  468.  
  469.  
  470. File Functions:
  471.  
  472.    F2 = Save file
  473.         Saves all changes made to file.  Existing file is overwritten by
  474.         the new file.  It does not prompt for a new file name -
  475.         automatically assumes you want to overwrite the old file.
  476.  
  477.    F3 = Quit file
  478.         Abandons any changes made in the file and closes or kicks the file
  479.         out of the current window.  If you are editing multiple files or
  480.         have multiple windows, TDE searches for any invisible files to
  481.         display in the current window.  If no invisible windows are found,
  482.         TDE combines windows.  If this is the only file being edited, F3
  483.         quits TDE.  If you made any changes to the file, it asks you if
  484.         you want to abandon them.  You can create an invisible window when
  485.         you load in a file over the current file.  Nothing happens to the
  486.         invisible file or window - you just can't see it.
  487.  
  488.         When I added vertical windows, this routine became a LOT more
  489.         complicated.  To keep things reasonably sane, let's only close
  490.         windows that have three common edges, eg.
  491.  
  492.                         ┌──────┬──────────┐
  493.                         │      │    no    │
  494.                         │      ├─────┬────┤
  495.                         │      │yes1 │yes1│
  496.                         │  no  ├─────┴────┤
  497.                         │      │   yes2   │
  498.                         │      ├──────────┤
  499.                         │      │   yes2   │
  500.                         └──────┴──────────┘
  501.  
  502.         Windows with 'no' cannot be closed.  Windows with 'yes' can be
  503.         combined with windows that have the same yes number.
  504.  
  505.  
  506.    F4 = File (save and quit)
  507.         This function is a combination of Save and Quit (F2 & F3 above).
  508.  
  509.    #F2 = Save as
  510.         If you don't want to overwrite the original file but you want to
  511.         save the contents of the current file, you may save the file under
  512.         a different file name.  This function prompts you for a file name
  513.         to save the changes (press escape to abort).
  514.  
  515.    #F4 = Edit new file
  516.         To bring another file into the editor, use this function.  It
  517.         loads the file into the current window and previous window becomes
  518.         invisible.  You can even load several copies of the same file.  I
  519.         like this because I often need to refer back to the original
  520.         unchanged file on disk.  When I make a booboo in a file, which is
  521.         quite often, I don't necessarily want to quit and start over; I
  522.         just want to get back the part that I messed up.  It is really
  523.         easy to mark the original text in a block and copy it to the place
  524.         where I made a booboo.  Each time a file is loaded into TDE, it is
  525.         treated as a different file.
  526.  
  527.    @F2 = Set file attributes
  528.         Change the attributes of a file.  Attributes are:  A = Archive,
  529.         S = System, H = Hidden, R = Read-Only.  You can change the
  530.         attributes of a file so that read-only files can be edited.  To
  531.         edit a read-only file:  1) edit the file, 2) change the file
  532.         attributes to archive, 3) save the changes made in the file, 4)
  533.         change the file attributes back to read-only.
  534.  
  535.    @F4 = Edit next file
  536.         If you type multiple file names or type wildcard characters on the
  537.         command line, press this key to bring in the next file or the next
  538.         matching file into the editor.
  539.  
  540.    -f pattern file(s)         (Command line DefineSearchAndSeize)
  541.        or
  542.    #F12 = DefineSearchAndSeize
  543.         Search and Seize will search files for a pattern and only load
  544.         those files that contain pattern.  The command line Define Search
  545.         and Seize works a little differently than the function key S&S.
  546.         On the command line, spaces are interpreted by DOS as delimiters.
  547.         Therefore, the search pattern on the command line can not have
  548.         any embedded spaces.  On the other hand, the Fkey S&S search
  549.         pattern may contain most any character.
  550.  
  551.         Defining S&S also defines the search pattern.  When a file is
  552.         loaded, press RepeatFind to go to the next occurrence of pattern.
  553.         There are actually two find structures - one for the standard
  554.         search function and one for S&S.   Defining S&S also defines
  555.         the search function.  However, redefining the standard search
  556.         structure has no effect on the S&S pattern.  The S&S pattern
  557.         remains defined until another S&S redefines it.
  558.  
  559.     F12 = RepeatSearchAndSeize
  560.         After S&S has been defined, press this key to seize the next file
  561.         for pattern.
  562.  
  563.  
  564. Macros:
  565.  
  566.    @F3 = Macro record
  567.         This key toggles macro record off and on.  A flashing "Recording"
  568.         is displayed in the lite bar, so it shouldn't be too difficult to
  569.         tell when record is on.  This function assigns a keystroke or a
  570.         series of keystrokes to an unused function key.  Keystrokes are
  571.         played back for some prompts.  Prompts that require the user to
  572.         input a name or pattern are played back.  Prompts that require the
  573.         user to enter a choice, "Overwrite existing file (y/n)?" for
  574.         example, are not played back.
  575.  
  576.         There is room for 1024 keystrokes in the macro buffer.  There are
  577.         no restrictions on the length of a single macro.  If you want, you
  578.         may define one macro that contains 1024 keystrokes.  When TDE
  579.         terminates, all macros definitions disappear.  Macro definitions
  580.         are temporary.  If you want to reuse macros that are defined
  581.         during an editing session, they need to be saved before you exit
  582.         TDE.
  583.  
  584.                              Recursive Macros
  585.  
  586.         "Recursive" macros are supported.  Only one level of recursion is
  587.         supported in TDE.  Here's a simple example of a recursive macro:
  588.  
  589.                         Alt-F3    = turn macro record on
  590.                         Alt-5     = assign the recording to Alt-5
  591.                         Down      = move cursor down a line
  592.                         Alt-5     = call the macro we just defined
  593.                         Alt-F3    = turn macro record off
  594.  
  595.         Enter this macro and press Alt-5 to see what a recursive macro
  596.         does.  Recursive macros repeatedly execute themselves until an
  597.         error condition occurs, which usually happens when the end of file
  598.         is reached.  I often use recursive macros to delete certain lines
  599.         in a file or to rearrange the fields of a formatted data file.
  600.  
  601.         Each editor function in TDE returns a code to the macro processor
  602.         that indicates whether or not an error occurred.  Here are some
  603.         conditions that generate an error:  attempting to move the cursor
  604.         past the end of file or behind the start of the file, trying to
  605.         add too many characters in a line, attempting block operations
  606.         with no marked block, etc...
  607.  
  608.         One interesting phenomenon about recursive macros is that a macro
  609.         can be defined that never terminates.  The simplest
  610.         non-terminating macro definition in TDE is:
  611.  
  612.                   Alt-F3  = turn macro record on
  613.                   Alt-7   = assign the recording to Alt-7
  614.                   Alt-7   = call the macro we just defined
  615.                   Alt-F3  = turn macro record off
  616.  
  617.         This a+7 macro carries out no instructions.  The only thing this
  618.         macro does is call itself.  In a perfect world, this macro will
  619.         execute forever.  There are lots of ways to create non-terminating
  620.         recursive macros.  Be creative and try creating a few non-
  621.         terminating recursive macros yourself.  With several different
  622.         sizes and shapes of horizontal and vertical windows on the screen
  623.         and with cursor sync toggled on, you can create some really neat
  624.         macros using cursor movement keys.  If you get tired of waiting
  625.         for forever, just press Control-Break to stop any macro.
  626.  
  627.                       A Really Neat Recursive Macro
  628.  
  629.         Here's a really neat recursive macro that you might try with
  630.         cursor sync turned off.  Edit a fairly large file, one with at
  631.         least a 1000 lines, and move the cursor to line 500 or the half
  632.         way point.  Then, split the screen into several vertical windows
  633.         with about 15 columns in each window , e.g.:
  634.  
  635.                 ┌───────┬───────┬────────┬───────┬───────┐
  636.                 │       │       │        │       │       │
  637.                 │       │       │        │       │       │
  638.                 │       │       │        │       │       │
  639.                 │       │       │ start  │       │       │
  640.                 │       │       │        │       │       │
  641.                 │       │       │        │       │       │
  642.                 │       │       │        │       │       │
  643.                 └───────┴───────┴────────┴───────┴───────┘
  644.  
  645.         With cursor sync turned off and macro record turned on, define a
  646.         macro that 1) moves the cursor down in one window, 2) goes to the
  647.         next window and moves the cursor up, 3) goes to the next window
  648.         and moves the cursor down, 4) when the cursor finally makes it
  649.         back to the starting window, make the macro recursive.  Suppose
  650.         the cursor is in the window labeled "start" in the sample screen
  651.         above.  Here's the way the keystrokes in this macro would be
  652.         recorded:
  653.  
  654.  
  655.                 Alt-F3    = turn macro record on
  656.                 Alt-8     = assign this macro to Alt-8
  657.                 Down      = move cursor down in "start" window
  658.                 F10       = next window
  659.                 Up        = move cursor up
  660.                 F10       = next window
  661.                 Down      = move cursor down
  662.                 F10       = next window
  663.                 Down      = move cursor down
  664.                 F10       = next window
  665.                 Up        = move cursor up
  666.                 F10       = next window - cursor is now in "start"
  667.                 Alt-8     = call the macro just defined. it's now recursive.
  668.                 Alt-F3    = turn macro record off
  669.  
  670.         Press Alt-8 and watch a really neat recursive macro.
  671.  
  672.  
  673.    #F1 = Save macro file
  674.         Saves all macro definitions to a file.  TDE prompts for the macro
  675.         file name.
  676.  
  677.    #F3 = Load macro file
  678.         Prompts for a search pattern or file name.  I can never remember
  679.         macro file or path names, so this function uses a file pick list.
  680.  
  681.    ^ESC = Clear macros
  682.         Resets or clears all macros.
  683.  
  684.    ^P  = Pause
  685.         When this function is part of a macro, press any key to continue
  686.         the macro or press ESC to halt or break the macro.
  687.  
  688.  
  689. Find and Search/Replace:
  690.  
  691.    TDE uses the Boyer-Moore search algorithm for finding strings.  Typically,
  692.    the longer the search pattern the faster the search.  So, if you want to
  693.    speed up searches, try searching for longer patterns, e.g. phrases.
  694.  
  695.    ^F5 = Toggle search case
  696.         You can toggle the case of the search flag at any time, even
  697.         after you define the search pattern.
  698.  
  699.    #F5 = find forward
  700.         To define the search pattern, use this function.  It prompts you
  701.         for the search pattern.  The pattern is defined, across files,
  702.         until changed.
  703.  
  704.    #F6 = find backward
  705.         Same as find forward except search backward in file.
  706.  
  707.    F5 = Repeat find forward
  708.         Once the search pattern has been defined (Shift F5 or Shift F6),
  709.         you can press this key at any time in any file to find the next
  710.         occurrence of pattern.  I decided to use two sets of functions to
  711.         perform searches.  Once I found a pattern, I might do some editing
  712.         and then find the next occurrence.  I hate to define the search
  713.         pattern over and over or set the search direction over and over.
  714.         This function does a wrap search - when it reaches the eof it
  715.         starts over at the beginning of the file.
  716.  
  717.    F6 = Repeat find backward
  718.         Like repeat find forward, you can press this key at anytime once
  719.         the search pattern has been defined.
  720.  
  721.    Repeat find forward2
  722.         Like F5 except the cursor is not repositioned to the middle of the
  723.         screen.  This function is useful when working with data files.
  724.  
  725.    Repeat find backward2
  726.         Like F6 except the cursor is not repositioned to the middle of the
  727.         screen.
  728.  
  729.    #F8 = Replace String
  730.         This function prompts you for the search pattern and the
  731.         replacement text.  It also prompts for the replace direction.  If
  732.         you want to match the search case, remember to toggle the search
  733.         flag, which can be done at any time.  You can either do prompt or
  734.         no prompt replacing.   Regardless of prompt or no prompt
  735.         replacing, this function actually moves the cursor to the pattern
  736.         and displays it on the screen and replaces the text. If you are
  737.         using TDE on a slow machine, you can see the search/replace taking
  738.         place.  I implemented the function this way because I just like to
  739.         see what the search/replace function is doing.  Press
  740.         Control-Break to stop no prompt replacing.
  741.  
  742.  
  743. Diff Functions:
  744.  
  745.    #F7 = DefineDiff
  746.         This function initializes diff.  It prompts for the window number
  747.         and letter to diff, ignore leading space, ignore all space, ignore
  748.         blank lines, ignore case, and ignore end of line.  Any two windows
  749.         may be diffed.  Diff only requires that the windows be visible.
  750.  
  751.                                Diff prompts
  752.  
  753.       DIFF:  Enter first window number and letter (e.g. 1a) :
  754.       DIFF:  Enter next window number and letter (e.g. 2a) :
  755.       DIFF:  Start diff at (B)eginning of file or (C)urrent position? (b/c)
  756.       DIFF:  Ignore leading spaces (y/n)?
  757.       DIFF:  Ignore all space (y/n)?
  758.       DIFF:  Ignore blank lines (y/n)?
  759.       DIFF:  Ignore end of line (useful with reformatted paragraphs) (y/n)?
  760.  
  761.     F7 = RepeatDiff
  762.         Once the diff has been defined, press RepeatDiff to find the next
  763.         diff.
  764.  
  765.  
  766. Window Functions:
  767.  
  768.    F8 = Split window vertically
  769.         Splits the screen at the current cursor location.  The current
  770.         file is displayed in multiple windows.  Changes to a file are
  771.         echoed in all windows opened to the same copy of that file.  You
  772.         can also see any marked blocks in the same copy of the file in
  773.         different windows.  There has to be at least 15 columns in any
  774.         window, so the number of visible windows is limited by the display
  775.         screen.
  776.  
  777.    F9 = Split window horizontally
  778.         Splits the screen at the current cursor location.  There has to be
  779.         at least 1 text line in any window, so the number of visible
  780.         windows is limited by the display screen.
  781.  
  782.    #F9 = Resize window
  783.         Sometimes there is a need to concentrate on the contents of one
  784.         window.  Use the up and down arrow keys to adjust the current
  785.         window to desired size.  Changing the size of the top window is
  786.         not allowed.
  787.  
  788.    ^F9 = Zoom window
  789.         Makes the current window fill the whole screen.  All windows
  790.         except the current window become invisible.
  791.  
  792.    F10 = Next window
  793.         If more than one window is displayed, you can press one key to
  794.         move to the next window.
  795.  
  796.    #F10 = Previous window
  797.         Move to previous window - opposite of next window.
  798.  
  799.    ^F10 = Next Hidden Window
  800.         Displays "hidden" or "invisible" windows in the same place as the
  801.         current window.  The current window then becomes invisible.
  802.  
  803.  
  804. Block Commands:
  805.  
  806.   Block operations can be done within or between files.  Operations on
  807.   line blocks that move text are carried out on the line immediately
  808.   below the cursor.  Operations on box or stream blocks that move text
  809.   begin at the column of the cursor.  Press Control-Break to stop most Box
  810.   operations.  Nearly all Line and Stream operations happen so fast that
  811.   you can't stop them once they are started.
  812.  
  813.    @B - Mark Box Block
  814.         This key is used to mark both the beginning and ending corner of
  815.         a box block.
  816.  
  817.    @L - Mark Line Block
  818.         This key is similar to the operation of the box block, but entire
  819.         lines are marked.
  820.  
  821.    @X - Mark Stream Block
  822.         All the text between the beginning and ending column, sorta like a
  823.         stream of characters, is marked.  Useful with sentences.
  824.  
  825.    @U - Unmark Block
  826.         If you make a booboo when marking blocks, press @U to unmark the
  827.         block and start over.  After certain block operations, the block
  828.         may remain marked.
  829.  
  830.    @G - Group Delete block
  831.         Sorta self explanatory.  This function deletes the text in the
  832.         marked block.
  833.  
  834.    @M - Move block
  835.         Move the cursor to the desired location and press @M to move the
  836.         marked block.  In line mode, the text is moved to the line
  837.         immediately below the cursor.  In box and stream mode, the block
  838.         is moved to the column of the cursor.
  839.  
  840.    @C - Copy block
  841.         With line blocks, the block is copied to the line below the
  842.         cursor.  With box and stream blocks, the block is copied
  843.         beginning at the column of the cursor.  If you try to copy a
  844.         Line block within itself, the block copy starts at the first
  845.         line immediately after the marked block.
  846.  
  847.    @K - Kopy block
  848.         Same as copy block except block stays marked.  It's sorta like a
  849.         poor man's cut-and-paste buffer.
  850.  
  851.    @O - Overlay block
  852.         You can only overlay Box blocks.  The original block stays marked
  853.         after the operation.
  854.  
  855.    @F - Fill box block
  856.         Fills the marked Box block with character.  This function is
  857.         useful for filling in a column of periods for tables and such.
  858.  
  859.    @N - Number box block
  860.         TDE prompts you for the starting number, the increment, and
  861.         whether to left or right justify the numbers.  TDE only handles
  862.         integers  -  no floating point numbers are allowed.  I felt that
  863.         there were too many things involved in real numbers, eg. number
  864.         of significant places to left of decimal, to right of decimal,
  865.         exponents, engineering form, scientific form, etc....  If you
  866.         want real numbers, just use a combination of the number box
  867.         and fill box functions.  Use the fill box function to make a
  868.         column of decimals and the number box function to number the left
  869.         and right side of the decimal.
  870.  
  871.    @P - Print block
  872.         Prints the block to the PRN device.  I haven't tried redirecting
  873.         the PRN, but it should work.  This function prompts for block or
  874.         file to print.  Press Control-Break to stop printing.
  875.  
  876.    @S - Sort box block
  877.         Lines are sorted, ascending or descending, using the contents of
  878.         the box block as the sort keys.  The Ignore/Match toggle
  879.         determines whether case of the keys is significant.  To sort
  880.         multiple columns, sort the least significant column first.  Press
  881.         Control-Break to stop.
  882.  
  883.   #@S - Swap block
  884.         Swap block only works with BOX blocks.  The area to be swapped
  885.         is assumed to be the width of the BOX block.  Make sure the
  886.         cursor is at the top left corner of the area to swap before
  887.         swapping.
  888.  
  889.    @W - Write block to file
  890.         Writes the marked block to a file.  TDE prompts for the file
  891.         name.
  892.  
  893.    @E - Block expand tabs
  894.         Expands the tabs in the marked block, which must be a LINE block,
  895.         using the current tab setting.  Press Control-Break to stop.
  896.  
  897.    @T - Block trim trailing
  898.         Trims trailing space, if any, at the end of each line in a LINE
  899.         block.  Press Control-Break to stop.
  900.  
  901.    @< - Block upper case
  902.         Convert all lower case characters in the block to upper case.
  903.         Our old IBM mainframe line printers can only print upper case.
  904.  
  905.    @> - Block lower case
  906.         Convert all upper case characters in the block to lower case.
  907.  
  908.    @? - Block strip high bit
  909.         Strip the high bit off all characters in the block.  This function
  910.         is useful when editing files produced by WordStar.
  911.  
  912.    #@< - BlockRot13
  913.         Convert all alpha characters in a block using ROT13.
  914.  
  915.    #@> - BlockFixUUE
  916.         Fixes the EBCDIC to ASCII problem with text e-mail.
  917.  
  918.    #@? - BlockEmailReply
  919.         Prepends the customary "> " or ">" to e-mail replies to lines in a
  920.         LINE block.
  921.  
  922.  
  923. Word Processing Commands:
  924.  
  925.    @V - toggle word wrap
  926.         Toggle word wrap between off, Fixed Wrap, and Dynamic Wrap.  In
  927.         Fixed Wrap mode, the left margin is explicitly determined by the
  928.         left margin setting.  In Dynamic Wrap mode, the left margin is
  929.         determined by the indentation of the current line.  Writers may
  930.         find the Dynamic Wrap mode easier to use.  If the cursor is
  931.         somewhere in the line, words are pushed to the next line.
  932.  
  933.         In TDE, other than margins, word wrap and format paragraph or
  934.         format text have nothing to do with each other.  Word wrap is
  935.         used to push characters or the cursor to the next line when the
  936.         right margin is violated.  Format paragraph and format text can
  937.         be used at any time - they do not depend on the state of the
  938.         WordWrap flag.
  939.  
  940.   ^F6 - Set Left margin
  941.         May be set to any column equal to or greater than 1 and less than
  942.         the right margin.
  943.  
  944.   ^F7 - Set Right margin
  945.         May be set to any column greater than the left margin and less
  946.         than the maximum line length or 1040.
  947.  
  948.   ^F8 - Set Paragraph margin
  949.         The paragraph margin may be set to any column less than the right
  950.         margin.
  951.  
  952.   @F7 - format paragraph
  953.         Text is formatted from the beginning of the paragraph according
  954.         to the current left, right, and paragraph margins.  If the cursor
  955.         is not on the beginning line of a paragraph, TDE searches for
  956.         start of the paragraph and formatting starts there.  The entire
  957.         paragraph is formatted according to the margins.
  958.  
  959.   ^B - Format Text
  960.         Text is formatted from the cursor onward.  This function does not
  961.         search for the beginning of the paragraph to start the format.
  962.  
  963.   @F8 - Left justify
  964.         Beginning of current line is adjusted to start at left margin
  965.  
  966.   @F9 - Right justify
  967.         End of current line is adjusted so it ends at the right margin
  968.  
  969.  @F10 - Center justify
  970.         Current line is centered between the left and right margins.
  971.  
  972.  
  973. Tabs:
  974.  
  975.    Tab
  976.         If in insert mode, insert the appropriate number of spaces for a
  977.         tab and move the cursor left.  If in overwrite mode, just move
  978.         the cursor left w/o inserting text.
  979.  
  980.   #Tab
  981.         Move cursor to previous tab.
  982.  
  983.   ^Tab
  984.         Set ptabs and ltabs.
  985.  
  986.   @Tab
  987.         Toggle smart tab mode.  Smart tab positions are determined by
  988.         looking for the first, previous, non-blank line above the cursor
  989.         and then positioning the cursor at the beginning of the next or
  990.         previous word from the column of the cursor.  It's useful for
  991.         building tables and formatted data files.
  992.  
  993.    #@T
  994.         Toggle TabInflate mode.  In TabInflate mode, tabs are not
  995.         physically expanded.  Tabs are filled with space to give the
  996.         illusion of physical expansion.
  997.  
  998.  
  999. Toggles:
  1000.  
  1001.    ^F1
  1002.         Toggle cursor sync.  Only cursor movement commands are synced.
  1003.         Commands that change text are not synced.
  1004.  
  1005.    ^F2
  1006.         Toggle eol display.  A special character is displayed in the
  1007.         column of the actual new line.
  1008.  
  1009.    ^F3
  1010.         Toggle writing <CR><LF>, <LF>, or nothing at end of line.  TDE
  1011.         will read a text file with lines that end in either method;
  1012.         however, you may want to write the file in a different method.
  1013.         I think *nix systems only want a <LF> of the end of line.
  1014.  
  1015.    ^F4
  1016.         Toggle trimming trailing space at the end of line.  A 'T' is
  1017.         displayed in the bottom right of the mode line to indicate
  1018.         trailing space is trimmed.
  1019.  
  1020.    ^F5 = Toggle search or sort case
  1021.         You can toggle the case flag at any time, even after you define
  1022.         the search pattern.
  1023.  
  1024.    Ins
  1025.         Toggle between insert and overwrite mode.
  1026.  
  1027.    @I
  1028.         Toggle between indent and no indent mode.  In indent mode, TDE
  1029.         searches for the first non-blank character on previous lines and
  1030.         places the cursor on that column when a carriage return is
  1031.         pressed.  When backspacing in indent mode, TDE lines up the
  1032.         indentation with the first non-blank character of the previous
  1033.         line(s).
  1034.  
  1035.    @R - Toggle ruler
  1036.         Toggle display of ruler in all visible windows.
  1037.  
  1038.    @V - toggle word wrap
  1039.         Toggle word wrap between Off, Fixed Wrap, and Dynamic Wrap.
  1040.  
  1041.    @Z
  1042.         Toggle writing Control Z at the end of file.  Some programs may
  1043.         misbehave if a Control Z is not at the end of the file.
  1044.  
  1045.  
  1046. Other keys:
  1047.  
  1048.    Enter
  1049.         Insert a newline at the cursor.  If the cursor is in the middle of
  1050.         a line, the line is split at the cursor.  Indentation is matched
  1051.         if the editor is in the Indent mode.
  1052.  
  1053.    #Enter
  1054.         Move the cursor down a line.  The cursor is placed on the first
  1055.         non-blank character in the next line.  No lines are added to the
  1056.         file.
  1057.  
  1058.    ^Enter
  1059.         Move the cursor down a line.  The cursor is placed on column 1 in
  1060.         the next line.  No lines are added to the file.
  1061.  
  1062.    Up (arrow)
  1063.         Move cursor up.
  1064.  
  1065.    Down (arrow)
  1066.         Move cursor down.
  1067.  
  1068.    Left (arrow)
  1069.         Move cursor left.
  1070.  
  1071.    Right (arrow)
  1072.         Move cursor right.
  1073.  
  1074.    Home
  1075.         Toggles between the first non-blank character and column zero.
  1076.  
  1077.    End
  1078.         Move cursor to the end of line character.
  1079.  
  1080.    Page Up
  1081.         Move cursor up one page.
  1082.  
  1083.    Page Down
  1084.         Move cursor down one page.
  1085.  
  1086.    ^Right
  1087.         Move cursor one word right.
  1088.  
  1089.    ^Left
  1090.         Move cursor one word left.
  1091.  
  1092.    ^#Right   (Control+Shift+Right)
  1093.         Pan the screen one character to the right.
  1094.  
  1095.    ^#Left    (Control+Shift+Left)
  1096.         Pan the screen one character to the left.
  1097.                                                 
  1098.    ^Home
  1099.         Move cursor to first line on screen.
  1100.  
  1101.    ^End
  1102.         Move cursor to last line on screen.
  1103.  
  1104.    ^Page Up
  1105.         Move cursor to first page in file.
  1106.  
  1107.    ^Page Down
  1108.         Move cursor to last page in file.
  1109.  
  1110.    Zip to line
  1111.         Move to line number.  TDE prompts for line number.  Press Escape
  1112.         to abort.
  1113.  
  1114.    Center
  1115.         The cursor is moved to the center of the current window.
  1116.  
  1117.   ^Center
  1118.         The line the cursor is on is moved to the center of the current
  1119.         window.
  1120.  
  1121.    Grey -  (on the key pad) or
  1122.    ^Down
  1123.         Scroll window up with cursor staying on same line in file.
  1124.  
  1125.    Grey +  (on the key pad) or
  1126.    ^Up
  1127.         Scroll window down with cursor staying on same line in file.
  1128.  
  1129.   @Grey Up (the arrow in the cursor/control cluster) or
  1130.   ^Grey -  (grey - on keypad)
  1131.         Cursor stays on same line of the screen as the file scrolls up.
  1132.  
  1133.   @Grey Down (the arrow in the cursor/control cluster) or
  1134.   ^Grey +  (grey + on keypad)
  1135.         Cursor stays on same line of the screen as the file scrolls down.
  1136.  
  1137.   @Grey PgUp
  1138.         Horizontal page left.
  1139.  
  1140.   @Grey PgDn
  1141.         Horizontal page right.
  1142.  
  1143.    ESC - undo line
  1144.         Get back the original unchanged line.  When cursor is moved off a
  1145.         line, all changes to the file are made and there is no way to get
  1146.         back the contents of a line.
  1147.  
  1148.    Del
  1149.         Delete the character, if any, under the cursor.
  1150.  
  1151.    ^Del
  1152.         Delete the characters in the file as if they were a stream.
  1153.         Lines will be joined at the cursor and eventually every
  1154.         character in the file may be deleted.
  1155.  
  1156.    Backspace
  1157.         Delete the character to the left of the cursor and move left.  If
  1158.         the cursor is on the first column of a line, the current line is
  1159.         joined with the line above.  If in indent mode and the cursor is
  1160.         on the first non-blank character, TDE matches the indentation of
  1161.         the previous line(s).
  1162.  
  1163.    @=
  1164.         Duplicates the current line.
  1165.  
  1166.    @-
  1167.         Deletes the text from the cursor to the end of line.
  1168.  
  1169.    ^Y
  1170.         Deletes current line, cursor does not move.
  1171.  
  1172.    @D
  1173.         Deletes current line, cursor does not move (exactly same as ^Y).
  1174.  
  1175.    @Y  or  ^U
  1176.         Undelete the most recently deleted line.  The undelete buffer has
  1177.         room for 200 lines of deleted text.  If more than 200 lines are
  1178.         deleted, the oldest line(s) are pushed out before the new one is
  1179.         added.  You may press ^U repeatedly to undelete all lines in the
  1180.         buffer.
  1181.  
  1182.         Deleted lines from line delete, delete to end of line, word
  1183.         delete, join line, and backspace are stored in the undelete
  1184.         buffer.
  1185.  
  1186.    @A
  1187.         Add a blank line below cursor.
  1188.  
  1189.    ^_  or Control underline
  1190.         Split line at column of cursor.  If in indent mode, the split line
  1191.         is autoindented.
  1192.  
  1193.    @J
  1194.         Join the current line with the line below.
  1195.  
  1196.    ^]
  1197.         Paren Balance.
  1198.  
  1199.    @1 - @3
  1200.         Set a file marker.  Each file may have up to 3 markers.
  1201.  
  1202.    #@1 - #@3    (Shift+Alt+1 thru Shift+Alt+3)
  1203.         Goto a previously defined file marker.
  1204.  
  1205.  
  1206.    ^@  (Control+At sign -- not Control+Alt.  Control+At sign is the first
  1207.           character in the ASCII character set, Control+2 on many keyboards)
  1208.         Writes the current system date and time at the column of the
  1209.         cursor.  Use tdecfg to set the desired year and time format.
  1210.  
  1211.    Control-Break
  1212.         In TDE, Control-Break will stop printing, sorting,
  1213.         search/replacing, and recursive macros.
  1214.  
  1215.  
  1216.  
  1217. WordStar style commands:
  1218.  
  1219.   A limited number of WordStar style commands are implemented in TDE.  I
  1220.   have no plans, whatsoever, to implement any additional WordStar style
  1221.   commands.  This implementation may not correspond exactly to the
  1222.   WordStar command convention.  WordStar is a trademark of WordStar
  1223.   International.
  1224.  
  1225.    ^A - word left
  1226.    ^B - format text
  1227.    ^C - screen down
  1228.    ^D - character right
  1229.    ^E - line up
  1230.    ^F - word right
  1231.    ^G - delete character
  1232.    ^H - backspace
  1233.    ^I - tab
  1234.    ^J - help
  1235.    ^K - n/a
  1236.    ^L - n/a
  1237.    ^M - return (carriage control, enter)
  1238.    ^N - add line below cursor
  1239.    ^O - n/a
  1240.    ^P - n/a
  1241.    ^Q - n/a
  1242.    ^R - page up
  1243.    ^S - character left
  1244.    ^T - word delete
  1245.    ^U - undelete line
  1246.    ^V - toggle insert mode
  1247.    ^W - scroll up line
  1248.    ^X - line down
  1249.    ^Y - delete line
  1250.    ^Z - scroll line down
  1251.    ^\ - redraw screen
  1252.  
  1253.  
  1254. Editor command summary:
  1255.  
  1256.    Function                      Description
  1257.  
  1258. Help                    Display instantaneous help screen
  1259. Rturn                   Insert newline and move down while matching indentation
  1260. NextLine                Move cursor to first character in next line
  1261. BegNextLine             Move cursor to first column in next line
  1262. LineDown                Move cursor down a line
  1263. LineUp                  Move cursor up a line
  1264. CharRight               Move cursor right one character
  1265. CharLeft                Move cursor left one character
  1266. PanRight                Pan screen one character right
  1267. PanLeft                 Pan screen one character left
  1268. WordRight               Move cursor to beginning of next word
  1269. WordLeft                Move cursor to beginning of previous word
  1270. ScreenDown              Page screen down
  1271. ScreenUp                Page screen up
  1272. EndOfFile               Move to the last page in a file
  1273. TopOfFile               Move to the first page in a file
  1274. BotOfScreen             Move cursor to bottom of current window
  1275. TopOfScreen             Move cursor to top of current window
  1276. EndOfLine               Move cursor to end of line
  1277. BegOfLine               Move cursor to first character in line or column 1
  1278. JumpToLine              Move cursor to line entered by user
  1279. CenterWindow            Move cursor to center of current window
  1280. CenterLine              Move current line and cursor to center of window
  1281. HorizontalScreenRight   Page screen right
  1282. HorizontalScreenLeft    Page screen left
  1283. ScrollDnLine            Scroll screen down 1 line and cursor moves with line
  1284. ScrollUpLine            Scroll screen up 1 line and cursor moves with line
  1285. PanUp                   Scroll screen up 1 line and cursor does not move
  1286. PanDn                   Scroll screen down 1 line and cursor does not move
  1287. ToggleOverWrite         Toggle insert/overwrite mode and cursor changes shape
  1288. ToggleSmartTabs         Toggle smart tab mode on/off
  1289. ToggleIndent            Toggle indent mode on/off
  1290. ToggleWordWrap          Toggle word wrap on/off
  1291. ToggleCRLF              Toggle CRLF/LF at eol when writing file to disk
  1292. ToggleTrailing          Toggle trim trailing space at eol
  1293. ToggleZ                 Toggle writing ^Z at eof
  1294. ToggleEol               Toggle display of eol character
  1295. ToggleSync              Toggle cursor sync
  1296. ToggleRuler             Toggle ruler display
  1297. ToggleTabInflate        Toggle expanding tabs in display
  1298. SetTabs                 Set file tabs
  1299. SetLeftMargin           Set left margin
  1300. SetRightMargin          Set right margin
  1301. SetParagraphMargin      Set paragraph margin
  1302. FormatParagraph         Format the entire paragraph according to margins
  1303. FormatText              Format from the cursor line to end of paragraph
  1304. LeftJustify             Left justify a line
  1305. RightJustify            Right justify a line
  1306. CenterJustify           Center justify a line
  1307. Tab                     Move cursor to next tab and add spaces if insert mode
  1308. BackTab                 Move cursor to previous tab and delete if insert mode
  1309. ParenBalance            Match (), {}, or [] under the cursor
  1310. BackSpace               Delete previous character
  1311. DeleteChar              Delete current character, but do not join lines
  1312. StreamDeleteChar        Delete current character and join lines if at eol
  1313. DeleteLine              Delete current line
  1314. DelEndOfLine            Delete from the cursor to the eol
  1315. WordDelete              Delete from the cursor to the end of word
  1316. AddLine                 Insert a blank line under the cursor
  1317. SplitLine               Split the current line at the cursor
  1318. JoinLine                Join next line with current line at the cursor
  1319. DuplicateLine           Duplicate the current line
  1320. AbortCommand            Abort editor functions
  1321. UndoLine                Get back the original contents of a line
  1322. UndoDelete              Get back up to the last 200 lines deleted text
  1323. ToggleSearchCase        Toggle match/ignore search case or sort case
  1324. FindForward             Prompt for pattern and search forward
  1325. FindBackward            Prompt for pattern and search backward
  1326. RepeatFindForward1      Repeat find forward and adjust cursor if needed
  1327. RepeatFindForward2      Repeat find forward and do not adjust cursor
  1328. RepeatFindBackward1     Repeat find backward and adjust cursor if needed
  1329. RepeatFindBackward2     Repeat find backward and do not adjust cursor
  1330. ReplaceString           Search and replace pattern forward/backward
  1331. DefineDiff              Define starting diff options
  1332. RepeatDiff              Find the next diff
  1333. MarkBox                 Mark start or end of a box block
  1334. MarkLine                Mark start or end of a line block
  1335. MarkStream              Mark start or end of a stream block
  1336. UnMarkBlock             Unmark a block
  1337. FillBlock               Fill a box block with prompted character
  1338. NumberBlock             Fill a box block with starting number using increment
  1339. CopyBlock               Copy a block to cursor and unmark block
  1340. KopyBlock               Copy a block to cursor and leave block marked
  1341. MoveBlock               Move a block to cursor and unmark block
  1342. OverlayBlock            Overlay a box block
  1343. DeleteBlock             Delete a block
  1344. SwapBlock               Swap contents of BOX block w/ cursor
  1345. BlockToFile             Write a marked block to a file
  1346. PrintBlock              Print a block or file
  1347. BlockExpandTabs         Expand tabs in marked LINE block using tab setting
  1348. BlockCompressTabs       Compress space to tabs in LINE block
  1349. BlockIndentTabs         Compress leading space to tabs in LINE block
  1350. BlockTrimTrailing       Trim trailing space from all lines in a line block
  1351. BlockUpperCase          Convert all lower case in block to upper case
  1352. BlockLowerCase          Convert all upper case in block to lower case
  1353. BlockRot13              Rotate alpha characters by 13
  1354. BlockFixUUE             Fix the ASCII-EBCDIC translation problem
  1355. BlockEmailReply         Prepend '>' to included mail blocks
  1356. BlockStripHiBit         Strip the high bit from all characters in block
  1357. SortBoxBlock            Sort line according to keys in box block
  1358. DateTimeStamp           Insert system time and date
  1359. EditFile                Editor prompts for file to edit
  1360. DirList                 List matching files in subdirectories
  1361. File                    Save file and quit window
  1362. Save                    Save file
  1363. SaveAs                  Save file under a new file name
  1364. SetFileAttributes       Set current file attributes
  1365. EditNextFile            Edit next file on command line
  1366. DefineSearchAndSeize    Initial pattern and search files
  1367. RepeatSearchAndSeize    Search and load next file that contains pattern
  1368. RedrawScreen            Redraw the screen
  1369. SizeWindow              Change size of current window
  1370. SplitHorizontal         Split current window horizontally
  1371. SplitVertical           Split current window vertically
  1372. NextWindow              Move to next window
  1373. PreviousWindow          Move to previous window
  1374. ZoomWindow              Make current window the maximum window size
  1375. NextHiddenWindow        Switch to next hidden window
  1376. SetMark1                Set a file marker
  1377. SetMark2
  1378. SetMark3
  1379. GotoMark1               Move cursor to previously defined marker
  1380. GotoMark2
  1381. GotoMark3
  1382. RecordMacro             Record keystrokes
  1383. PlayBack                Used in config file - play back keystrokes
  1384. SaveMacro               Save macro to a file
  1385. LoadMacro               Load macro from a file
  1386. ClearAllMacros          Clear the macro buffer
  1387. Pause                   Pause a macro
  1388. Quit                    Quit current window and file and abandon changes
  1389. NextDirtyLine           Move cursor to next dirty line, if it exists.
  1390. PrevDirtyLine           Move cursor to previous dirty line, if it exists.
  1391.